<include path="header" /> 
	<div class="m-title">
    	<ul>
        	<li>工作</li>
            <li><a href="work_todo">待办</a></li>
            <li><a href="workgroup">工作分组</a></li> 
            <li class="right"><a href="add">+ 工作 | 待办</a></li>
            <li></li>
        </ul>
    </div>
     <div class="box">
    	<ul class="tasklist">
        	<li>未完成的工作</li>
        	<? if(!empty($unfin) && count($unfin) > 0){ foreach($unfin as $unli){ ?>
            <li>
            <span><?=$unli['subject']?></span>
            <span><?=$unli['mk_username'] ?></span>
            <span><a><?=$unli['finish_percent']?>%</a></span>
            </li>
        	<? }} ?>
        </ul>
    </div> 
    <br />
	<div class="devide"></div>
    <div class="box">
    	<ul class="tasklist">
        	<li>完成的工作</li>
            <? if(!empty($fin) && count($fin) > 0){ foreach($fin as $li){ ?>
            <li>
            <span><?=$li['subject']?></span>
            <span><?=$li['mk_username'] ?></span>
            <span><?=round(86400/($li['end_time']-$li['mktime']-86400), 2)."%" ?></span>
            </li>
        	<? }} ?>
        </ul>
    </div>
<include path="footer" /> 